import Cookies from 'js-cookie'
//设置token的唯一标识
const TokenKEY = 'hrsaas-toke'
//设置时间戳的唯一标识
const TimeStemp='token-time'
export function getToken() {
  return Cookies.get(TokenKEY)
}

export function setToken(token) {
  Cookies.set(TokenKEY, token)
}

export function removeToken() {
  Cookies.remove(TokenKEY)
}

export function getTimeStamp() {
  return Cookies.get(TimeStemp)
}

export function  setTimeStamp() {
  Cookies.set(TimeStemp,Date.now())
}


